package com.hopu.v1.utils;

import java.util.Random;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author: YwaiX
 * @Version: 1.0
 * @Date: Created in 2024-09-14 10:46:24
 * @Description: 手机验证码随机数
 */

public class SendRandomNumber {
    public static String randomNumber() {
        Random number = new Random();
        String code = "";
        for (int i = 0; i < 6; i++) {
            code += number.nextInt(10);
        }
        return code;
    }
}
